/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.gis.service.dto;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;


@Data
@ApiModel("地磅数据(流入)")
public class WeighbridgeInDto implements Serializable {


    @ApiModelProperty(value = "主键自增ID")
    private Long id;


    @ApiModelProperty(value = "伏泰ID")
    private String ftId;


    @ApiModelProperty(value = "系统编号")
    private String systemCode;


    @ApiModelProperty(value = "发货单位")
    private String sourceUnit;


    @ApiModelProperty(value = "备注")
    private String memo;


    @ApiModelProperty(value = "no")
    private String no;


    @ApiModelProperty(value = "term_id")
    private Integer termId;


    @ApiModelProperty(value = "区域")
    private String area;


    @ApiModelProperty(value = "时区")
    private String areaZone;


    @ApiModelProperty(value = "地磅名称")
    private String weightNo;


    @ApiModelProperty(value = "司机")
    private String driver;


    @ApiModelProperty(value = "卡号")
    private String icCode;


    @ApiModelProperty(value = "处置单位代码")
    private String disposeUnitCode;


    @ApiModelProperty(value = "处置单位名称")
    private String disposeUnitName;


    @ApiModelProperty(value = "出单人")
    private String weighMan;


    @ApiModelProperty(value = "卡车内部号")
    private String carInnerCode;


    @ApiModelProperty(value = "皮重（吨）")
    private BigDecimal tareWeight;


    @ApiModelProperty(value = "毛重（吨）")
    private BigDecimal grossWeight;


    @ApiModelProperty(value = "净重（吨）")
    private BigDecimal netWeight;


    @ApiModelProperty(value = "车牌号")
    private String carNo;


    @ApiModelProperty(value = "运输单位")
    private String transportUnit;


    @ApiModelProperty(value = "货物名称")
    private String productName;


    @ApiModelProperty(value = "皮重称重时间(时间戳)")
    private Long tareTime;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "皮重称重时间")
    private Date tareTimeStr;


    @ApiModelProperty(value = "毛重称重时间(时间戳)")
    private Long grossTime;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "毛重称重时间")
    private Date grossTimeStr;


    @ApiModelProperty(value = "车间名称")
    private String productToWhere;


    @ApiModelProperty(value = "操作日期")
    private String dateOperate;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    @ApiModelProperty(value = "发货单位内部编号")
    private String sourceUnitInnerCode;


    @ApiModelProperty(value = "运输单位内部编号")
    private String transportUnitInnerCode;


    @ApiModelProperty(value = "价格")
    private BigDecimal price;


    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;


    @ApiModelProperty(value = "核减重量(吨)")
    private BigDecimal deductWeight;


    @ApiModelProperty(value = "数据状态")
    private String dataStatusStr;


    @ApiModelProperty(value = "解决单位")
    private String handleUnit;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "导入时间")
    private Date importTime;

}
